/* 
* @Author: LDF QQ 47121862
* @Date:   2014-06-13 22:07:06
* @Last Modified by:   LDF QQ 47121862
* @Last Modified time: 2014-09-13 17:45:01
*/
function msg(opt){
	switch (opt){
		case 1:
			$.msg({str:'只显示5秒自动就自动关闭',timeout:10})
			break;
		case 2:
			$.msg({str:'显示遮罩层',shade:1,timeout:6})
			break;
		case 3:
			$.msg({str:'显示关闭按钮',shade:1,closebtn:1,timeout:20})
			break;
		case 4:
			$.msg({str:'关闭后有回调函数',timeout:6,shade:1,close:function(){$.msg({str:'这是回调内容',shade:1})}})
			break;
		case 5:
			$.msg({str:'<div class="f36 fm green tc">支持自定义大小</div>',shade:0,timeout:0,closebtn:1,css:{width:600,height:300}})
			break;
		default:
		$.msg();
	}
}


$(function(){
	$('.closeAllMsg').on('click',function(event) {
		$.closeMsg();
	});
})
